package oop;

import java.util.ArrayList;
import java.util.Iterator;

public class Unit52 {

	public static void main(String[] args){
		ArrayList al = new ArrayList();
		al.add("hai");
		al.add("oanh");
		al.add("love");
		
		Iterator iterator = al.iterator();
		while(iterator.hasNext()){
			System.out.println(iterator.next());
		}
	}
}
